<template>
  <div class="page2 wow" style="visibility: visible">
    <div>
      <i></i>
      <input type="text" placeholder="试试这里吧，也有惊喜哦" value="" />
    </div>
    <ul>
      <li @click="toPage('jingxuan')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav1.png"
              alt=""
             
          /></i>
          <p>精选案例</p>
        </div>
      </li>
      <li @click="toPage('design')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav2.png"
              alt=""
             
          /></i>
          <p>设计名人堂</p>
        </div>
      </li>
      <li @click="toPage('duilding')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav3.png"
              alt=""
             
          /></i>
          <p>精工匠艺</p>
        </div>
      </li>
      <li @click="toPage('matericl')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav4.png"
              alt=""
             
          /></i>
          <p>全案服务</p>
        </div>
      </li>
      <li @click="toPage('voice')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav5.png"
              alt=""
             
          /></i>
          <p>最新资讯</p>
        </div>
        
      </li>
      <li @click="toPage('about')">
        <div>
          <i
            ><img
              src="/src/assets/img/nav6.png"
              alt=""
             
          /></i>
          <p>企业介绍</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter()
const toPage=(name)=>{
  router.push({name:name}).then(()=>{
    window.scrollTo({
      top:0
    })
  })
}
</script>

<style>
.home .page2 {
    width: 6.9rem;
    height: 6.65rem;
    background:linear-gradient(to bottom,rgba(255, 255, 255, 0.1),#fff);
    backdrop-filter: blur(8px);
    box-shadow: 0 .1rem .4rem 0 rgb(244 244 244 / 51%),
                inset 0 .0 .4rem 0 rgb(255 255 255 / 51%);
    margin: -5rem auto 0;
    position: relative;
    z-index: 888;
    padding: .29rem .46rem;
    opacity: 0;
    animation: slide-down-in 1s,fade-in 1s;
    animation-fill-mode: forwards
}

.home .page2>div {
    border-bottom: .01rem solid rgba(233,233,235,0.1);
    display: flex;
    align-items: center;
    padding-bottom: .25rem
}

.home .page2>div i {
    width: .4rem;
    height: .7rem;
    background: url(/src/assets/img/head02.png) no-repeat 50%;
    background-size: .29rem .29rem;
    cursor: pointer
}

.home .page2>div input {
    height: .7rem;
    flex: 1;
    font-size: .24rem;
    font-weight: 400;
    color: #000;
    font-family: Microsoft Yahei,-apple-system,PingFang SC,Helvetica Neue,STHeiti,Tahoma,Simsun,sans-serif;
    background: transparent;
    border: none;
    padding-left: .37rem
}

.home .page2>div input::-moz-placeholder {
    font-size: .24rem;
    font-weight: 400;
    color: #fff;
    font-family: Microsoft Yahei,-apple-system,PingFang SC,Helvetica Neue,STHeiti,Tahoma,Simsun,sans-serif
}

.home .page2>div input:-ms-input-placeholder {
    font-size: .24rem;
    font-weight: 400;
    color: #fff;
    font-family: Microsoft Yahei,-apple-system,PingFang SC,Helvetica Neue,STHeiti,Tahoma,Simsun,sans-serif
}

.home .page2>div input::placeholder {
    font-size: .24rem;
    font-weight: 400;
    color: #fff;
    font-family: Microsoft Yahei,-apple-system,PingFang SC,Helvetica Neue,STHeiti,Tahoma,Simsun,sans-serif
}

.home .page2 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: .54rem
}

.home .page2 ul li {
    width: 1.79rem;
    border-radius: .1rem;
    margin-bottom: .49rem;
    position: relative
}

.home .page2 ul li div {
    width: 1.79rem;
    height: 1.79rem;
    border-radius: .1rem;
    transition: .3s;
}

.home .page2 ul li div i {
  display: block;
    width: 100%;
    height: 100%;
}

.home .page2 ul li div i img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 100%;
    transform: translate(-50%,-50%);
    opacity: 1;
    transition: .3s
}

.home .page2 ul li div i img:nth-child(2) {
    opacity: 0
}

.home .page2 ul li div:active {
    border: .01rem solid #dd292c
}

.home .page2 ul li p {
    text-align: center;
    font-size: .26rem;
    font-weight: 700;
    color: #333;
    position:absolute;
    width: 100%;
    bottom: 0.2rem;
}
</style>